#!/usr/bin/python
# -*- coding: UTF-8 -*-

import redis
from config.config import LOG_REDIS_HOST, LOG_REDIS_PORT

__pool = redis.ConnectionPool(
    host=LOG_REDIS_HOST, port=LOG_REDIS_PORT, decode_responses=True
)


def GetInstance():
    return redis.Redis(connection_pool=__pool)
